{% extends "base_generic.html" %}
{% block title %}User{% endblock %}
{% block content %}
<h1>User</h1>
<form name="edit-tendency" id="edit-tendency" method="post" action="{{path}}">
  <div class="line">
    <div class="field">
      <label for="name">Name:</label>
      <input type="text" name="name" id="name" value="{{customuser.name}}" />
    </div>
    <div class="field">
      <label for="url">Url:</label>
      <input type="text" name="url" id="url" value="{{customuser.url}}" />
    </div>
    <div class="field">
      <label for="url">Email:</label>
      <input type="text" name="email" id="email" value="{{customuser.user.email}}" />
    </div>
    <div class="field">
      <label for="url">Role:</label>
      <select name="role" id="role">
        <option value="editor"{% ifequal customuser.role 'editor' %} selected="selected"{%  endifequal %}>Editor</option>
        <option value="admin"{% ifequal customuser.role 'admin' %} selected="selected"{%  endifequal %}>Admin</option>
      </select>
    </div>
  </div>
<div><input type="submit" name="save" id="publish" value="Save" /></div>
</form>
{% endblock %}
